﻿using System.Data;

namespace Tms.BLL
{
    public class single_report
    {
        private readonly DAL.single_report dal = new DAL.single_report();
        
        //是否存在该记录
        public bool Exists(string id)
        {
            return dal.Exists(id);
        }

        //增加一条数据
        public int Add(Model.single_report model)
        {
            return dal.Add(model);
        }

        //更新一条数据
        public int Update(Model.single_report model)
        {
            return dal.Update(model);
        }

        //删除一条数据
        public bool Delete(string id)
        {
            return dal.Delete(id);
        }

        //获取一个实体对象
        public Model.single_report GetModel(string id)
        {
            return dal.GetModel(id);
        }

        //获取前几行数据
        public DataSet GetList(int Top, string strWhere, string strOrder)
        {
            return dal.GetList(Top, strWhere, strOrder);
        }

        //获取查询分页数据
        public DataSet GetList(int pageSize, int pageIndex, string strWhere, string strOrder, out int recordCount)
        {
            return dal.GetList(pageSize, pageIndex, strWhere, strOrder, out recordCount);
        }

        //特例
        public Model.single_report[] GetOnceModel(string once_id)
        {
            return dal.GetOnceModel(once_id);
        }

        public Model.single_report GetOnceModel(string once_id, string WhichChan)
        {
            return dal.GetOnceModel(once_id, WhichChan);
        }
    }

}
